QuickTime 4.1 now enables JavaScript control of the QuickTime Plug-in. This works currently only in Netscape browsers. An example of JavaScript usage to play and stop a QuickTime movie is shown in Listing 6, "Sample JavaScript Usage".
The browser will not recognize that the QuickTime Plug-in is JavaScriptable unless the movie's embed statement includes "enablejavascript=true". Technically, Netscape communicates from JavaScript to the plug-in through Java, which requires that Java is running. Rather than require that the browser be running Java to display any embedded movie, the QuickTime Plug-in does not ask the browser to start Java unless the embed statement or movie user data includes this tag.
The following are the QuickTime Plug-in's JavaScript methods. These allow you to query and control QuickTime movies within a browser page.
| Previous | Chapter Contents | Chapter Top | Next |